package com.kaiqingsun.io;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * intputStream/OutPutStream...JDBC小语法
 */
public class Demo6 {
    public static void main(String[] args) throws Exception{
        try(InputStream is = new FileInputStream("./hello.txt")){
            System.out.println(is);
        }catch (IOException exc){
            exc.printStackTrace();
        }
        //编译的时候自动添加了is.close（）；
    }
}
